<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">

        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEstacaoTitle}"></h:outputText>
        </ui:define>

        <ui:define name="body">
            <h:form>
                
                <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
                </h:panelGroup>
                <br/>

                <fieldset>
                    <legend><h:outputText value="#{bundle.LegendEstacaoTitle}"></h:outputText></legend>
                    <h:panelGrid columns="2">
                        <h:outputText styleClass="textoSaida" value="#{bundle.ViewEstacaoLabel_estId}"/>
                        <h:outputText value="#{estacaoController.selected.estId}" title="#{bundle.ViewEstacaoTitle_estId}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estNm}"/>
                        <h:outputText value="#{estacaoController.selected.estNm}" title="#{bundle.ViewEstacaoTitle_estNm}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estCdPlu}"/>
                        <h:outputText value="#{estacaoController.selected.estCdPlu}" title="#{bundle.ViewEstacaoTitle_estCdPlu}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estCdFlu}"/>
                        <h:outputText value="#{estacaoController.selected.estCdFlu}" title="#{bundle.ViewEstacaoTitle_estCdFlu}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estIcCampanha}"/>
                        <h:outputText value="#{estacaoController.selected.estIcCampanha}" title="#{bundle.ViewEstacaoTitle_estIcCampanha}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estCdAdicionalestado}"/>
                        <h:outputText value="#{estacaoController.selected.estCdAdicionalestado}" title="#{bundle.ViewEstacaoTitle_estCdAdicionalestado}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estStrId}"/>
                        <h:outputText value="#{estacaoController.selected.estStrId}" title="#{bundle.ViewEstacaoTitle_estStrId}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estCdIgpontopoligono}"/>
                        <h:outputText value="#{estacaoController.selected.estCdIgpontopoligono}" title="#{bundle.ViewEstacaoTitle_estCdIgpontopoligono}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estCdIgpontolinha}"/>
                        <h:outputText value="#{estacaoController.selected.estCdIgpontolinha}" title="#{bundle.ViewEstacaoTitle_estCdIgpontolinha}"/>
                        <h:outputText value="#{bundle.ViewEstacaoLabel_estCdIggeometria}"/>
                        <h:outputText value="#{estacaoController.selected.estCdIggeometria}" title="#{bundle.ViewEstacaoTitle_estCdIggeometria}"/>

                        <!-- Dados estão como null no banco de dados, por isso foram removidos da tela-->
                        <ui:remove>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estResId}"/>
                            <h:outputText value="#{estacaoController.selected.estResId}" title="#{bundle.ViewEstacaoTitle_estResId}"/>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estIcBasica}"/>
                            <h:outputText value="#{estacaoController.selected.estIcBasica}" title="#{bundle.ViewEstacaoTitle_estIcBasica}"/>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estIcEnergetica}"/>
                            <h:outputText value="#{estacaoController.selected.estIcEnergetica}" title="#{bundle.ViewEstacaoTitle_estIcEnergetica}"/>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estIcNavegacao}"/>
                            <h:outputText value="#{estacaoController.selected.estIcNavegacao}" title="#{bundle.ViewEstacaoTitle_estIcNavegacao}"/>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estTcaId}"/>
                            <h:outputText value="#{estacaoController.selected.estTcaId}" title="#{bundle.ViewEstacaoTitle_estTcaId}"/>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estTqcId}"/>
                            <h:outputText value="#{estacaoController.selected.estTqcId}" title="#{bundle.ViewEstacaoTitle_estTqcId}"/>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estCdAdicionalPlu}"/>
                            <h:outputText value="#{estacaoController.selected.estCdAdicionalPlu}" title="#{bundle.ViewEstacaoTitle_estCdAdicionalPlu}"/>
                            <h:outputText value="#{bundle.ViewEstacaoLabel_estCdAdicionalFlu}"/>
                            <h:outputText value="#{estacaoController.selected.estCdAdicionalFlu}" title="#{bundle.ViewEstacaoTitle_estCdAdicionalFlu}"/>
                        </ui:remove>
                        <!-- ######################### -->
                    </h:panelGrid>
                    <br />                 
                    <p:commandButton action="#{estacaoController.prepareList}" value="#{bundle.ViewEstacaoShowAllLink}"/>
                </fieldset>
            </h:form>

        </ui:define>

    </ui:composition>

</html>
